package com.pig4cloud.pig.module.service.charger;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pig4cloud.pig.common.mybatis.core.BaseService;
import com.pig4cloud.pig.module.api.entity.charger.ChargerOrder;
import com.pig4cloud.pig.module.api.entity.charger.ChargerPortRecord;

import java.util.List;

/**
 *  充电设备端口上报心跳记录 Service接口
 *
 * @author ruoyi
 * @date 2022-05-07
 */
public interface IChargerPortRecordService extends BaseService<ChargerPortRecord> {
    /**
     *  动态添加表
     * @return
     */
    int addNowMonthRecordTable();

    /**
     *  获取当前订单的 充电数据记录
     * @param chargerOrder
     * @return
     */
    List<ChargerPortRecord> getRecordListByOrderNo(ChargerOrder chargerOrder);


    /**
     *  获取当前订单的 充电数据记录
     * @param chargerOrder
     * @return
     */
    Page<ChargerPortRecord> getRecordListByOrderNo(Page<ChargerPortRecord> page, ChargerOrder chargerOrder);
}
